<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
<%@ include file="/decorators/taglib.jsp"%>
<html>
<script language="javascript"> 

    $(function()
    {
      $("#queryForm").validationEngine();
      $('.ui-button-exp').button();
    });
    function save()
    {
     $("#queryForm").attr("action","<c:url value="/sequence/add.action"/>");
     $("#queryForm").submit();
    }
    function cancle()
    {
     location.href = '<c:url value="initsequence.action"/>';
    }           

</script>
<body>

      <form id="queryForm" name="queryForm" method="post" action="">  
          <table width="100%" id="tab">       
                <thead >      
                      <tr>
                            <th colspan="3" style="font-size:14px; text-shadow:700;    text-align: left;">add</th>    
                      </tr>       
                </thead>      
                <tbody>       

                      <tr>
                        <td class="one">id:</td>  
                        <td colspan="2" class="two"><input type="text" id="id" name="id"  class="validate[optional,custom[integer]]" value="" /></td>    

                      </tr>                        <tr>
                        <td class="one">seqname:</td>  
                        <td colspan="2" class="two"><input type="text" id="seqname" name="seqname"  class="validate[optional,custom[integer]]" value="" /></td>    

                      </tr>                        <tr>
                        <td class="one">currentvalue:</td>  
                        <td colspan="2" class="two"><input type="text" id="currentvalue" name="currentvalue"  class="validate[optional,custom[integer]]" value="" /></td>    

                      </tr>                        <tr>
                        <td class="one">increment:</td>  
                        <td colspan="2" class="two"><input type="text" id="increment" name="increment"  class="validate[optional,custom[integer]]" value="" /></td>    

                      </tr>  

                      <tr>       
                            <td colspan="3" class="two" align="center">
                                <input type="button" class="ui-button-exp" value="save" onclick="save();"/>&nbsp;                                                                             
                                <input type="button" class="ui-button-exp" value="cancle" onclick="cancle();"/>&nbsp;
                                <input type="reset" class="ui-button-exp" value="reset" />&nbsp;      
                            </td>      
                      </tr>  
             </tbody>      
          </table>
    </form>

</body>
</html>
